Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(js_formatter): match default clause block handling with case clauses #1148

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

faultyserver
Copy link
Contributor

Summary

In #1035 I fixed some issues with case clauses with multi-statement bodies, but those didn't carry over to default clauses because they are handled separately. This copies the updated logic so that they match.

Test Plan

Added some cases to the existing spec test for switch to cover default clauses as well.

Copy link

netlify bot commented Dec 11, 2023

Deploy Preview for biomejs canceled.

Name Link
🔨 Latest commit 32d574d
🔍 Latest deploy log https://app.netlify.com/sites/biomejs/deploys/657777a2d7505700080b86be

@github-actions github-actions bot added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages labels Dec 11, 2023
@faultyserver faultyserver merged commit c4dbf99 into main Dec 11, 2023
18 checks passed
@faultyserver faultyserver deleted the faulty/default-clause-block branch December 11, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants